import {QueryFiledUtil} from '@/utils'
import {DictOptions,ProductOptions} from "@/libs/options";

export const STAFF_SEARCH = [
    QueryFiledUtil.setInputField('code', '场地代码'),
    QueryFiledUtil.setInputField('name', '场地名称'),
    QueryFiledUtil.setDictUrlField('status', '场地状态',DictOptions.PlaceStatus),
]

export const PIGSTY_SEARCH = [
    QueryFiledUtil.setInputField('code', '猪圈代码'),
    QueryFiledUtil.setDictUrlField('place', '所属场地',ProductOptions.BasicPlaceOptions),
    QueryFiledUtil.setDictUrlField('kind', '猪圈类型',DictOptions.PigstyKind),
    QueryFiledUtil.setDictUrlField('status', '猪圈状态',DictOptions.PigstyStatus),
]


export const RFID_SEARCH = [
    QueryFiledUtil.setInputField('beaconMac', '蓝牙耳标MAC'),
    QueryFiledUtil.setDictUrlField('status', '耳标在线状态',DictOptions.RfidStatus),
    QueryFiledUtil.setDictUrlField('useStatus', '耳标使用状态',DictOptions.RfidUseStatus),
]

export const PROFILE_SEARCH = [
    QueryFiledUtil.setInputField('code', '食物代码'),
    QueryFiledUtil.setInputField('name', '食物名称'),
    QueryFiledUtil.setDictUrlField('kind', '食物类型',DictOptions.ProfileKind),
    QueryFiledUtil.setDictUrlField('status', '上架状态',DictOptions.ProfileStatus),
]
export const COMBO_SEARCH = [
    QueryFiledUtil.setInputField('code', '套餐代码'),
    QueryFiledUtil.setInputField('name', '套餐名称'),
    QueryFiledUtil.setDictUrlField('status', '上架状态',DictOptions.ProfileStatus),
]

export const LEVEL_SEARCH = [
    QueryFiledUtil.setInputField('code', '等级序号'),
    QueryFiledUtil.setDictUrlField('breed.code', '适用品种',ProductOptions.PigBreedOptions),
    QueryFiledUtil.setBooleanField('allowKill', '是否允许宰杀',"允许宰杀","不允许宰杀"),
    QueryFiledUtil.setDictUrlField('stage', '所属阶段',DictOptions.ProfileStage),
    QueryFiledUtil.setDictUrlField('kind', '喂养类型',DictOptions.GoodsMode),
]

export const CAMERA_SEARCH = [
    QueryFiledUtil.setInputField('deviceSerial', '设备序列号'),
    QueryFiledUtil.setInputField('deviceName', '设备名称'),
    QueryFiledUtil.setInputField('defence', '在线状态'),
]

export const DETAIL_SEARCH = [
    QueryFiledUtil.setInputField('deviceSerial', '设备ID'),
    QueryFiledUtil.setInputField('channelName', '通道名称'),
    QueryFiledUtil.setBooleanField('status', '通道在线状态',"在线","离线"),
    QueryFiledUtil.setDictUrlField('cameraStatus', '摄像头状态',DictOptions.CameraStatus),
    QueryFiledUtil.setDictUrlField('cameraDirection', '摄像头位置',DictOptions.CameraDirection),
]

export const GOODS_SEARCH = [
    QueryFiledUtil.setInputField('code', '商品代码'),
    QueryFiledUtil.setInputField('name', '商品名称'),
    QueryFiledUtil.setDictUrlField('mode', '喂养模式' ,DictOptions.PigstyKind),
    QueryFiledUtil.setDictUrlField('status', '销售状态' ,DictOptions.ProfileStatus),
    QueryFiledUtil.setBooleanField('promotion', '是否促销',"促销中","不促销"),
]

export const SERVE_SEARCH = [
    QueryFiledUtil.setInputField('code', '服务代码'),
    QueryFiledUtil.setInputField('name', '服务名称'),
    QueryFiledUtil.setDictUrlField('status', '上架状态',DictOptions.ProfileStatus),
]

export const SNACKS_SEARCH = [
    QueryFiledUtil.setInputField('code', '零食代码'),
    QueryFiledUtil.setInputField('name', '零食名称'),
    QueryFiledUtil.setDictUrlField('status', '售卖状态',DictOptions.ProfileStatus),
]

export const BREED_SEARCH = [
    QueryFiledUtil.setInputField('code', '品种代码'),
    QueryFiledUtil.setInputField('name', '品种名称'),
]
